Do you think he knew on some level that he might get caught? I do think he knew on some level that he might get caught. Because whenever a person does something that involves risks/getting caught, like in his case, they are probably thinking about the consequences in the back of their head.
Answer to question