Yes, using Bluestacks is 100% legal as it only emulates an operating system (Android) that isn’t illegal itself. However, the same can’t be said when it comes to emulators for Gameboy or Nintendo because you need to download ROMs (these are protected by copyright) for them to work, which is illegal.