Yes, just remove the xorg configuration file for nvidia at /etc/X11/xorg.conf.d
, shutdown, replace the gpu, boot it. Now this outputclass take action:
$ cat /usr/share/X11/xorg.conf.d/10-amdgpu.conf
Section "OutputClass"
Identifier "AMDgpu"
MatchDriver "amdgpu"
Driver "amdgpu"
Option "HotplugDriver" "amdgpu"
EndSection
Finally, you can remove the nvidia module completely if you wish.