Yes. There is more than one way of doing it – the “proper” Mac way is using modified or created LaunchDaemons, but you can do it the linuxy way too.