Is It OK to Take an Antibiotic Before Surgery?

This RealSelf user took an antibiotic for a sinus infection before getting a mommy makeover. Is that OK?