If it's Intel then the pins are in the socket. The CPU is fine.
The motherboard not is OK if the pins in the socket are bent. If the pins are bent then the motherboard/CPU will not work until the pins are corrected or the motherboard is replaced. If you are planning on selling the CPU and motherboard as a combo, the buyer may end up sending it right back to you.