That may depend on the app. If the developer decided to allow the app to do background refreshes (the Gmail app for example), it's entirely possible it'll use data when it's not the active app.
If you have Marshmallow or Nougat, you can use data saver features (unless your phone manufacturer has decided to turn the feature off) to restrict background data on an app-by-app basis.
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.