In either case, the learning method is probably similar. The documentation situation for UE is not good, and you have to do your best with what you can find on youtube and in unreal training.
Having said that, one of the main upsides of learning with C++ is you don’t have to wonder how a module works, because you can just take a look at the code. I have a feeling, that a lot of developers in fact see the code as the documentation.