Is a D passing in a gen-ed course?

If I get a D in a science gen ed course but my major has nothing to do with science, would I still get credit for that gen-ed?

Thanks!

Bump