But not if the shell is running as an inferior process in an emacs buffer, in which case you have to do yet another thing.
(use-package exec-path-from-shell
:demand t
:config
(exec-path-from-shell-initialize)
(exec-path-from-shell-copy-env "PATH"))