Better to light a candle than to curse the darkeness. meaning

HOME PROVERBS

problem

Better to light a candle than to curse the darkeness.

suggests that:
better to do something about a problem than just complain about it.