Not possible in Fedora. It isn’t straightforward. If you still want to get new kernels and keep some you’ll have to do manual kernel removal like sudo dnf remove kernel*6.12.77* kernel*6.19.9* from time to time and prevent dnf from auto removing then by putting in your /etc/dnf/dnf.confinstallonly_limit=5 to keep 5 kernels max because of limited disk space in /boot. 5 is a suggestion. Remove unneeded kernels manually before dns starts to do it.
You could also set it to 0 instead of 5 to disable it completely. In such a case you are required to remove kernels manually to prevent eating up all disk space which would render your system unbootable.