Wrong, my novice friend. Both are subdivisions of philosophy. Science was once called natural philosophy, to distingush it from theology.
I hardly see cosmology as a subfield of philosophy. My theological views offer an explanation of cosmology. It's incomplete, doesn't answer how, but it does answer Who. And it is clear theology influences the interpretation of the evidence for cosmology.