STRIPE - Asking for CC info at sign up, but offer free trial.

I want to be able to offer a free trial, but still ask for credit card info at time of sign up. Can I do this with the stripe gateway?