Yes, they will be fine provided that the tank is big enough. They'd be fine in a gallon each for that matter, if only for a few days. Just make sure the temperature is constant and warm. An airstone isn't necessary for breathing (obviously) but will help prevent the water from scumming over.
Be aware that they may not get along, however. Even some females can be a bit witchy.