You must register before the first payday. It can take up to 6 weeks. You can’t register more than 2 months before you start paying people.
You must register if you’re employing yourself, for example as the only director of a limited company.
Most new employers can register online. Find out whether you need to register and how to do it.