Yes. That’s the point of the feature. Just give A and B the same folder password when sharing with the untrusted VPS. Receive both offers with the folder type set to receive encrypted on the VPS. They will sync even without a direct connection between A and B.