I have not done it yet but it should work just fine. The only issue that I am aware of is the issue whether or not the code is native M1 code or not. When I checked about 6 months ago, the GNU compiler system was not yet set up to create M1 native executables. Even if this is not the case, the code should still work, just not as efficiently as is theoretically possible.