Ya, thats the idea, but it is best to save the pollen from a female plant that has a male flower and breed it with a different female plant so you dont get inbred seeds that have problems.
The female plant that makes a male flower... usually only has the X chromosome instead of the Y chromosome...