can i mix impatiens, petunias and begonias in the same container?

I have nice bacyard, and i'm very fond of flowers. But i'm new in gardening and i want to know how to mix flowers in containers or inflower beds.