Is building the project in Visual Studio same as compiling in Unreal Editor?

I am new to Unreal Engine 4 and would like to know if there is any difference between building a project directly in Visual Studio and Compiling it in Unreal Editor.

From my experience building in visual studio is only really needed if you’ve made some big changes and want to refresh as much code as you can at once or to rebuild it all. The compile button in engine is for making small iterative changes for testing.