Welcome to the community!
Assuming the version of the phone you're planning on getting is the Canadian version, it should have all of the compatible bands/frequencies for the networks. Also, Fido and Rogers share their networks.
While the phone should work on the networks, you should note that certain features (ie Wifi-calling and/or voLTE) won't likely work since the phone is not a Fido device.
Hope this helps 😀