Yep, Unity has an alright terrain system (Unreal is a bit more advanced, but also runs worse, mostly personal preference) and you can make your own VR player to walk around or import an asset like oculus Integration/steamvr/another solution (xr Interaction toolkit is great also even cross platform) for vr movement.
Just follow any vr setup guide if you got the terrain running