Yes, you can use any sustain pedals for any keyboards. Sustain pedals are mainly switches - on or off.
You'll need to know that different manufacturers may differ in sustain pedal polarities, just to make life difficult for us. That means some manufacturers will have the polarity reversed (standard sustain on becomes off, and vice versa). That can be easily changed by either changing the polarity on the keyboard (if it allows you to), or on the pedal itself (if it allows you to). If I recall correctly, Casio is one of those reverse polarity ones. Check if you can change the polarity on the pedals easily when you buy them.