Bed swap on mazda b2000

hi everyone i have a question well i have a 86 mazda b2000 longbed and i found a 87 same model but its a shortbed i was wondering if its possible to swap beds ? will it fit right ?