SQL Replication using Two Availability Group
Sure. The docs have plenty of detail on how, and specific details that might affect your implementation.
I'd recommend configuring your distributor as a third, dedicated AG (assuming 2017+).