The VOIDRUNNER'S CODEX is LIVE! Explore new worlds, fight oppressive empires, fend off fearsome aliens, and wield deadly psionics with this comprehensive boxed set expansion for 5E and A5E!
Provided that you have a sufficient damage bonus to beat the hardness, use the whip in the right way, AND your GM says that a whip is capable of damaging steel, then yes.
Although as a DM I would probably class that under the 'certain attacks can't damage certain objects' clause, it's not a hard and fast rule, and in some circumstances I might not.