Does the type of physical activity matter for fitness?

Yes. First and foremost, you must enjoy it. If you don't, it will be hard to continue. A mix of cardio-activities that you enjoy, walking, jogging, cycling, tennis, swimming are many examples. But resistance and weight training is desirable, because it boosts your steady state metabolism, and will make injuries that might occur in the cardio activities less likely.