Hi,
You can change the subnet, but not the virtual network, that a network interface is assigned to, more information here:
https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface#change-subnet-assignment
(Please don't forget to mark helpful replies as answer)
Best regards,
Leon