Can I squat and run for distance?

I want to run a half marathon, but I also want to have some strength. Does squatting play nice with distance running, or am I actually hurting both by trying to do two different things?