It is normal, yes. Coding is practice and unreal is a gigantic engine that goes way beyond simply writing code that does stuff.
The example you posted however, is quite basic vector math. What I can just highly highly recommend if you want to make your life easier (if the functionality of your code example and not the coding itself caused your trouble) is grabbing a course/ book on 3D math, since 90% of the movement things you will be doing are based on that. Topics to cover are:
-cartesian coordinates
-vectors (arithmetic operations, length, dot product, cross product, etc.)
-planes (intersection, reflection etc.)
-matrices -> especially rotation matrices and euler rotations
-quaternions (don’t worry if your goal is to get how they’re used for rotations and not dive in the whole mathematical problem of complex numbers, they’re not too hard to understand)
Once you got at least a basic understanding of these topics, there will be no problems involving movement of some kind that are unsolvable or that you can’t understand