There is tons of threads on this. Most have to deal with swapping complete engines. Yes it will work.
https://www.ft86club.com/forums/showthread.php?t=119729
FYI don't use the forum search function, use google search like this "ft86club: 2017 engine in 2013" . Tons of threads pop up this way.