Yes, Soapwort can be grown in containers. Keep in mind that this plant is a perennial. Perennials live for more than two years. They grow back every year when dormant. You can keep them in containers for several years, provided the container is small and doesn't overwhelm the plant. Keeping it small means you kill your Soapwort after two or three years by letting it stay in too big a pot.