No as both are lossy codecs you will always lose quality doing so. You can do it with ffmpeg.
parallel ffmpeg -i {} {.}.opus ::: *.m4a
You may want to tweak parameters for bitrate, etc. But this is not needed at all, as AAC had patents that are now expired.
If you get .flac, .wav or similar lossless music, you should encode that with opus. But lossy to lossy makes nearly no sense (apart from specific players not supporting them)