Can you get in trouble for skipping school if you're 18?
From your parents, yes. From the school, yes. From the police, probably not. But if the police are bugging you, you were already doing something else to get their attention.
You might get in "trouble" at your school, but not with the law. Won't swear to it, though.