If I have a client that needs me for 1 to 2 months, do I have to wait til the end to get paid?

I have a client that needs me for a couple months, do I have to wait til stay is over to get paid