Her O2 SIM card won't work in the phone. But do it the other way round, by putting a Tesco SIM into an O2-branded phone, and it will work.
If depends what contract your daughter's friend has. The mobile needs to unlocked.
Found this on Tesco website
Track usage, upgrade and get support with the My O2 appDownload My O2