caffeine has a half life of about 5 hours, meaning if you have 10mg of caffeine in your system, after 5 hours you'll have 5mg
then after another 5 hours (10 total) you'd have 2.5mg
so yeah, it stays in your system and will affect your sleep and everything regardless of how long you've been addicted to it

