RPi boots before router

I have set up my Rpi with a static IP address and it works fine. The problem I have is that when I power the system, the Rpi boots before the router and I get no network connection (unable to ping to my pi). If I then proceed to reboot just the Rpi, it starts working as it should. So my guess is that the pi is booting before the router. But being a static IP I don’t understand why it should matter.

Any ideas?

Enable “wait for network” in the Pi options.
sudo raspi-config

Option 3.“Boot Options”
Option B2: “Wait for Network at Boot”
Answer Yes


Will test thanks