Is secure use constants?

I come from Python and it isn't recommended there.