Yes, diodes aren't rated for frequency but for junction capacitance, turn-off charge and turn-off delay, repetitive peak current and the like.
By looking at these parameters, one can bin diodes roughly to
- Rectifiers (line frequency) - robust with large peak current but also large turn-off delay/charge (if specified at all) - not useful for frequencies above a few kHz
- Fast rectifiers (SMPS) - low turn-off losses (due to low turn-off charge/delay), medium to low peak current in comparison to steady current, typical frequencies up to few 100kHz
- General small signal - low capacitance, low steady forward current, usually working fine to MHz range
- All kind of RF and other specials - read the datasheet to find out the intended application and frequency range
The UF400x is of the fast rectifier kind, not really suitable as an (power) line rectifier (that would be the 1N400x)