@Mulla, Tabrez Welcome to Microsoft Q&A thanks for posting your question.
Yes if you are using Vnet in the first place for primary and replica servers , this is documented in the networking page Networking overview with private access (virtual network) - Azure Database for PostgreSQL - Flexible Server | Microsoft Learn
Regards
Geetha