Default Can I install a nandroid backup from another phone.

Hi guys, I just got a phone replacement and I was wondering if I could take a TWRP backup form my old phone and install it onto my new phone? And if that isn't ok, is a Titanium backup ok?