PCIe Endpoint Enumeration
PCIe is designed to be able to support hot-plugging.
If all of your hardware and software implement this correctly, it will work.

You didn't name names, so only you can find this out.