To relieve the intense itching that often happens with pinworm infection, your health care provider may also prescribe a soothing ointment or cream. These treatments can be applied directly to the itchy skin.