Photoshop can do it, provided you do not need to many slices because then thing becomes very slow.
For a simple landscape stack — say between 2 and 10 images — Photoshop is plenty fast enough.
Stacking quality is lower (not as sharp) than from the dedicated FocusStacking champions, i.e. Helicon Focus and Zerene Stacker.
In my tests between Photoshop and Helicon Focus, I found the opposite to be the case. Helicon introduces artefacts, whereas Photoshop leaves the original images as they are and simply creates very basic masks. Whilst these masks sometimes need to be manually edited, the end result, for me, is cleaner.
For the OP, it's probably best if you shoot some stacks, run them through both Photoshop and Helicon or Zerene (trial versions), layer the final results in Photoshop, and toggle between them at 100% to choose your favourite. I was ready to pony up for Helicon, but in my tests I preferred Photoshop's results.
Focus-stacking is a complicated business because many images can't be stacked because they are missing data. Helicon will attempt to smooth over these gaps, whereas Photoshop will leave them glaringly obvious. In the field, I prefer to limit stacking attempts to scenarios that will stack simply — e.g a gently receding landscape. Photographing a distant mountain through the silhouette of a nearby blackthorn bush is never going to work.