Can caffeine consumption impact the quality of your sleep?

Can caffeine consumption impact the quality of your sleep?