If that's what you do, then yes. If you choose instead to only advertise your positions at women-focused conferences and programs, the legality changes. You haven't prevented men from applying and being accepted, you've instead changed the audience of your advertising, which will change who applies.