Yes, containers or raised beds are great for herbs, especially if you have little space. Make sure your planter is at least 12 inches deep. Use a good potting mix made for containers or raised beds.