The capacitor is to block the DC portion of the signal and allow the speaker cone to move in both directions from its rest position. If your 555 is oscillating, you will get a sound from the speaker either with or without a capacitor, though it may be more distorted without the capacitor...