You need separate licences.
Also is good to know that in Standard edition you can use Basic Availability Groups and not Always On Availability Groups.
You can find differences below:
https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/basic-availability-groups-always-on-availability-groups?view=sql-server-ver15