If you link Super Mario Run to a Nintendo Account, it will be possible to continue using things like your Rally Tickets or the content you've purchased after changing devices. You cannot restore purchases via your Nintendo Account.
Please see the question “If you link to a Nintendo Account, what data can you carry over?" for more information about purchase status.