Yes it's okay if a little water gets into your babies ears when bathing them and there's no harm that's gonna be done.
You can wipe the babies ears out with a washcloth to dry the babies ears out of the water but don't use cotton swabs or anything else that can harm the babies ears.
Or just let the babies ears dry out naturally once you get them out of the bath.
I've gotten water in my babies ears a lot of times and then just gently wiped the water out of the ear and then let the ears dry out naturally.
It never has been a problem.