It is not necessary to wear socks. It is recommended to wear climbing shoes without socks for the performance, as they usually are designed to be in direct contact with the skin to improve the comfort and the perception. Many climbers prefer to wear socks, as they feel a stronger fit.
Keep in mind that usually the size is calculated for a foot without socks. If you prefer to wear socks, be aware of it when you choose the size.