Yes, if the officer has a reason to believe the female may be armed and a danger to him he may pat her down.  This happens all the time.  If a female officer is available the preference would be to have her do it but in a female officer's absence a male officer has authority to perform a pat down.