Can i use an external hard drive with the Time Capsule as a separate time machine?

I have an iMac with a 1TB fusion Drive and a Macbook Air with a 128GB SSD. I want to use the Time Capsule to back up my iMac and i want to use an external drive connected to the time capsule to back up my macbook air using time machine.