Prime/paint drywall ceiling in bathroom around ceiling light
Assuming you have a typical exhaust fan in operation, there's no concern. Cut drywall edges around electrical boxes are never treated. It would only be in severe moisture situations that you'd have a problem, and sealing the hole isn't the solution there anyway.