Is it ok to wear black to a wedding?

Being pregnant, my options are limited. I have a really nice black dress I can wear though? Would that be terrible?