Both exercises create quite an impact on your knees, legs, back, etc.
Both are fine and can be incorporated into a running
program as long as you don't overdue the training. Don't jump right into stairs. Run first and run up and down some hills, then start stairs.