Yeah, you can do it most of the time. The API is totally different, and some features may exist in one or not the other, but the general game programming concepts and patterns will work in any engine.
However, it will definitely be harder than following a Godot specific tutorial, as you will have to understand how things work in both engines (or more generally, in any engine) in order to know how to port it.