Unreal Engine 5 won't arrive until late 2021. They're going to keep releasing major features to UE4 until at least then. I'm sure there will be a migration process for existing projects, as long as you're on a recent UE4 version.
So if you want to use Unreal, consider just learning C++ as you go. That's my only point.