Can you use cephalexin for a sinus infection?

Yes. But 1- many cases resolve without antimicrobials 2- other antimicrobials such as Amoxicillin / clavulanate may have better activity.