No it's not. I've done it many times. The key thing is, the cop only finds out you were carrying if you had to shoot somebody. In that case, yes you will be arrested pending determination of whether it was valid self defense.
No cops found out, did they.