No. There are various marijuana usage formats aside from smoking and vaping. For example, medical cannabis offers alternatives like creating edibles, tinctures, or hashish.
When making edibles or tinctures to manage chronic pain, decarboxylate it first to activate the THC before incorporating it into any recipes or soaking it in alcohol.