Do customers need to log in to make a purchase?

It is not necessary for customers to create an account or log in (unless you want them to and then this can be forced).  However, by default, you can give the customer the choice, and If they wish, they can proceed as a guest.
WooCommerce Frequently Asked Questions