Working on both Mac and Windows for the same UE4 project

Yes! The two integrations actually share many of their code and files, so you should be able to install both just by installing one, then installing the other in the same folder. While installing the second one, your operating system will notify you that some of the files are already present in the destination folder; those files should be identical in both versions, so it doesn’t matter which version you keep.