It can be, as long as you meet its needs. Rosemary prefers lots of light, well-draining soil, and not too much water. Keep it by a sunny window, and you're on the right track.