Depends, in my experiences that has totally worked. She will follow him and not swim away when she's ready to mate, can take time. Best to have a biggest tank and some plants for her to hide, i like floating indian fern to help with the nest structure. I remove my females ocne they mate.
See how you go, and remember to feed them well. Good luck.