Technically, it’s not about whether she has had sex or not. but Islamically, the procedure for marriage is different for someone who is getting marreid for the first time, (a “virgin”) or someone who is marrying again after a divorce or death.. in the first scenario, i think she needs a wali..and in the second scenario she doesn’t.