Absolutely, but I had been programming before entering uni and got most joy out of programming related courses.
But I enjoyed my time as a physics student. Physics is an interesting field to study even if you don't end up working in it, in my opinion. :)