“Yes”
This output is from Alma 9, but should be close enough:
$ dnf -q list perl perl-interpreter
Installed Packages
perl-interpreter.x86_64 4:5.32.1-479.el9 @appstream
Available Packages
perl.x86_64 4:5.32.1-479.el9 appstream
Do observe that these packages are in repository “appstream”. Rocky has two main repositories with
“RHEL-content”: the “baseos” and the “appstream”.
The “minimal” image contains packages only from “baseos”. Perl is not in the image.
The %post
does access “appstream” of nearest mirror (unless you explicitly disable network).