Geometric random variable P(X = n) =(1-p)^(n-1) p, holds?

Geometric random variable P(X = n) =(1-p)^(n-1) p, holds?

Explanation
The geometric distribution is a probability distribution that models the number of independent trials until a first success, where each trial has a constant probability of success (p).
The probability mass function is:
P(X = n) = (1 - p)^(n-1) p
This formula holds for independent trials, and n starts from 1 (not 0).