Yes, but be prepared to show that it IS empty and explain your gun's peculiarities when necessary.
I have seen people reinsert the partly loaded magazine with the protest "I'm not going to put one in the chamber." and do not consider that safe or appropriate.
Maybe a gutted magazine painted blue would be good. We had a guy who shot a S&W 5906 for which he could get one of those plastic dummy magazines and used it for the unload and show clear.