Yz250 pipe

Will it “bolt on” ? No
Can it be modified to fit? Are you good at fabricobbling especially thin sheet metal? Then yes

Will it work? Define work.

How much do you actually know about how an expansion chamber works ?