Virgins are not immune to getting stds. Any one that has unprotected sex can get an std.
If the person you had sex with doesn't have any stds then you're not going to get an std.
If you're going to have sex, ask your partner to use condoms, they can help reduce your chances of getting an std.