Replacing RPi2 with RPi3

Just found out that both my TV and the RPi connected to it running Kodi (15.0 on Openelec) have been nuked in a thunderstorm Sad

So have been shopping for a new pi, and ordered a RPi 3 (Pi2 model B nolonger available). When it gets here can I just plug it all in, swap the SD card and expect it to work?