In Scotland specifically? Googling tells me that if it is via the app then no but if contacted directly by T&T then it is? That might just be for England though.
Also how are you supposed to know who the person is who has contracted the virus as it doesn't say..?