Sure, but when you arrive at your destination you (typically) can't turn the engine off without turning the radio off too.
Edit: after reading some Mazda forums, it looks like you can just hold the shift button (if you have an automatic) while on park to make the radio stay on, no need for neutral or other gear. You might want to try that.