If the issue of security is acute, then it is better to allocate any potentially dangerous software to a separate "dirty" virtual machine, within which the user does not log into any services, mail, does not enter payment data - you can do the same with emulators, if any any suspicions.
For example, Parallels (and most likely other VMs) has the ability to run Android as a separate virtual machine, which will be isolated from the rest of the environment.
Just as secure as the programs you find and install from the Internet. If you trust the emulator itself, trust its creators, then you can consider it completely safe.
About viruses inside the emulation. The Android operating system is maximally protected from viruses, a virus cannot infect a standard Android, so even if you install and run a virus inside the emulator, the virus actually has no chance to overcome the barrier in the form of an emulator.
I am promoting my blog on Instagram, I want to learn how to cool photo / video editing. There is a lot of information on photo processing, but here's how to work with video ....