I'm guessing the shields of a star destroyer or a star dreadnought would be strong enough to not be completely destroyed but it would definitely do some damage
Outright destroying a Star Destroyer? No. Crippling one? Sure; if the attacker could utilize Thrawn's slingshot maneuver (as seen in Treason) and land the Seismic Charge in its hangar bay, that'd take a Destroyer out of the fight for sure.