No, you cannot put a YZ250 head and cylinder on a YZ125 bottom end. The YZ250 and YZ125 engines have different bore and stroke dimensions, so the cylinder and head are not interchangeable.
- YZ125: 54mm x 54.5mm (bore × stroke)
- YZ250: 66.4mm x 72mm (bore × stroke)