I’m planning to use container gardening to grow tomatoes this summer. Do they have to be outside at a certain point to be pollinated? Or can I keep them inside in a sunny spot and have them grow fine?

I’m planning to use container gardening to grow tomatoes this summer. Do they have to be outside at a certain point to be pollinated? Or can I keep them inside in a sunny spot and have them grow fine?
I’ve just planted a few tomato plants which may not be fruiting by the time it frosts here. I’m also planting carnival blend carrots and sage, possibly basil. I would like to keep them growing through fall/winter. They’re all in different pots or containers