Chances are they'd try to recruit the doctor/cop too and when they find out that they can't, they'll know that the doctor/cop is mafia.
Don't forget that the cult leader dies if he tries to recruit a mafia, so yeah, the whole cult would know who 1 of the mafia are, but they will never be able to recruit again since the leader is dead.