Can you bring in a rifle and trade it for a handgun?

Many gun dealers do take firearms in trade. It is up to the individual dealer. However, you must be able to legally own a handgun to do that.