In essence, a “capacitor is a capacitor”, although there are differences in design based on topology, type, and materials of manufacture. Sometimes capacitors will carry a dual rating, for AC and DC – the AC rating for a capacitor of the same capacitance is typically much lower than its DC rating (often at least 3-4x less since AC max voltage peak-to-peak is ~2.8x rms), to accommodate the significant heating internal to the cap caused by frequency/alternating polarity. Some manufacturers manufacture AC caps which are essentially two DC caps in series back-to-back; these limit current flow through either cap but their internal resistance is somewhat high, which can lead to eventual break down due to heating as well.