Probability mass function for categorical values

I am attempting to calculate the shannon entropy of a spesific set of charecteristics. It requires the calculation of the probability mass function below:
Probability mass function and shannon entropy

Is this simply the standard probability formula?