help with gearbox swap

gr32

hello guys i own a wrf 450 2006 and i have recently broke my gearbox,my question is can i fit the yzf 450 2005 gearbox is it a straight swap i am asking because i found a cheap one so that why is a better solution for me at the moment