It might work, I haven’t tried. But I think that’s also quite complicated for most people.
I’ve also heard quite a few people getting their number banned by only running in an emulator. If it’s an older WA account, it’s probably safe, but I wouldn’t do it on a fresh number.
The official app doesn’t need to be running constantly. It only needs to connect to Meta’s servers once every 14 days.
The Mautrix-Whatsapp bridge will send a notification couple of days in advance to warn you if the main device hasn’t been active.