You don’t need an apple account to use a Mac. If you just want to enter a username and set a password, that’s all you need to do. If you want everything synced between another Mac or iPhone and so on, sign into iCloud. But you don’t HAVE to, just skip it.
I get this reference.