Yes, your school can check whether you are submitting fake doctors note. But office personnel or teachers may or may not check, but they mostly will not, especially if you are not that student who makes frequent excuses to leave school early or was catch cheating on a test with phone. Some schools will direct you to the doctor's office to confirm if the note is authentic, which they may be able to know.