Certified GKH Gardening Expert
Growing plants in the same container requires both plants have same growing needs, i.e., water, sun, etc. Since they both like moist, well-drained soil in a sunny situation, I would say yes. Except, in this case, mint is a very aggressive spreader and may eventually take over the pot.
If you only intend to harvest once, then this will be fine. If you want them to be permanent companions then it will not work. I would recommend keeping them separate.