That depends on the device. Chances are that if the manufacturer has not released Marshmallow for that device it's not going to get Nougat.
What device are we talking about here?
If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See
this link for instructions on how to join Android Central.