It’s not impossible, but you should never do this. Fedora and Rocky Linux are way too diverged in terms of package sets and compatibility.
If you haven’t already, please see our resources guide. In particular, see the Community Supported Repositories section, including our wiki that explains supported repositories.
Long and the short: Most users will enable at least the epel repository. I also suggest at a minimum rpmfusion free, which requires EPEL.
Enable EPEL
% dnf install epel-release -y
% crb enable
Enable rpmfusion free
% dnf install rpmfusion-free-release -y