You only need your phone to be online when you register WhatsApp for the first time or pair new devices. After signing up, your phone doesn't need to stay online to use WhatsApp on linked devices, but your linked devices will go offline if you don't use your phone for more than 14 days.