Painting a room

Would it be okay to paint a room all in one day? It’s not a big room at all. Medium size. I would paint the ceiling first than do the walls. I would be starting early in the morning and be able to work all day.

Advice please - my uncle said it’s not good to paint a room in one day??? Which I didn’t think made sense but I just wanted to ask others options