Obviously that isn’t likely to happen in a wine that’s sealed with a screwcap but even they can smell a bit funky at times.
If the wine smells like soggy cardboard or wet dog, or comes across as stale or musty, there is a chance that the wine may be corked which means it’s faulty not that it has little bits of cork floating in it. Obviously that isn’t likely to happen in a wine that’s sealed with a screwcap but even they can smell a bit funky at times. Give it a moment or two then swirl it again.