Will a i5 8400 fit in a motherboard with an i5 6400 in it?

Feb 9, 2019
10
0
10
Right now, i have a motherboard with an i5 6400 in it, and i want to upgrade it cuz i bought an rtx 2060 and i want a better cpu right now. Will an i5 8400 fit in that motherboard?
 


 
MERGED QUESTION
Question from appel.thijs21 : "Wil an i5 8400 fit in a motherboard with an i5 6400 in it?"