How to setup heroku ENV variable for sso secret?

is it just heroku config:set DISCOURSE_SECRET= ilovetomcruise

and then

ENV[‘DISCOURSE_SECRET’] ?