Indeed it would, if such restriction were specified as an explicit part of the sentence for the crime. That's not how such restrictions are usually imposed, however.
Such restrictions are specified in state law. In my state anyone convicted of certain specific felonies within a set prior period of time cannot own a gun. Anyone convicted of a felony involving involving a gun cannot own a firearm period. Why should another state's laws override ours?