Yes, herbs that are companion plants can grow with each other in the same pot or container. But make sure that they are the companion plants that have the same growing conditions and weather situations. If they differ in their environments, then they won't be able to grow and get spoiled.