No, the CPU is not compatible with the chosen motherboard. They use different socket types.
All variants of the Asrock B250M use socket 1151. For example:
https://www.asrock.com/MB/Intel/B250M%20Pro4/index.asp
The CPU is socket 1155:
https://ark.intel.com/products/52207/Intel-Core-i5-2400-Processor-6M-Cache-up-to-3-40-GHz-