Can schools see your browsing history if it has been cleared?

Anonymous
earlier at school my friend was searching somethings up on a school laptop that was logged into my school account. the things were very inappropriate (i told them to stop, but they thought it was funny).
i'm now sat here panicking because after we left the lesson we saw the IT guy walking towards the class we came from.
can they see what websites my friend visited? i cleared the browsing history but i don't know if that's enough.
i'm scared for tomorrow because i don't want to be in trouble and i also don't want to dob my friend in.
Can schools see your browsing history if it has been cleared?
8 Opinion