Can I program UE4 directly through Visual Studio?

I don’t want to use the engine itself, only it’s code. The main reason is that my computer can’t handle it, and also because I’m not too good with engines. But I was reading that some of the game developers who use Unreal Engine manually edit part of their game’s code through Visual Studio. The question in my mind is: Is it possible and viable to create a project on Visual Studio, include Unreal Engine header’s and link it’s libraries, shaders and other files, and then write code from scratch using the engine?