I would certainly search around for articles on the ups and downs of it. In my personal experience, (having worked both office, and remote) I wouldn't trade remote for the world. But then everyone is different.
You do have to be more intentional about various things like work schedule, boundaries with family (for instance, if work is stressful - there isn't a 'drive home' to kind of decompress, so you have to be careful not to unload that on your family, who might be just a walk downstairs).
With all the tech tools for communication (even Hashnode) - this helps you stay connected and works against the loneliness factor. And if you plug into these communities, there are a ton of rad and helpful people out there working through the same stuff.
The best case scenario for making this transition, is an employer that will let you work remotely, if you choose. Then you can start with a couple days a week, do a little retrospective, and see if it's a good fit for you.