Understanding Keys for wireguard in the network-manager

Yes, but ideally you prefer to not move a private key from a system to the other, but if the system is not compromised and the private key really cleared from storage and memory, it is fine.