Herbs yes I think will do fine.
But tomato's... I think only if you have a grow light would they get big and bearfruit.
I could be wrong, I'm a rocket scientist (the rmh kind) not a gardener. That's my wife's specialty.
This would be a great time to look into a small aerogarden. It is designed specifically for this type of thing. In my experience, however, it works best when all plants are the same, or at least take up the same amount of height.
Keeping the world green, one party at a time!
(eco-friendly event decor)