Yes totally! The length of contact time between water and ground coffee determines the amount of caffeine in its coffee. So an espresso will be less caffeinated than a filter coffee. And a Cold Brew coffee preparation, where the infusion is the longest, will in principle be much higher in caffeine.