You can easily try and appeal if you are found guilty. 
to have a gun there's two offenses that are hanging one is to have a gun and the other is to is to deal in narcotics and and there's no appeal once you're found guilty the sentence is automatic