Yes, you can use the matplotlib library to plot the PMF of a binomial distribution.
Example: Plotting the PMF of a binomial distribution
import matplotlib.pyplot as plt
x = np.arange(0, n+1) # Possible number of successes
pmf = np.binom.pmf(x, n, p) # Probability mass function
plt.bar(x, pmf)
plt.xlabel("Number of Successes")
plt.ylabel("Probability")
plt.title("Binomial Distribution PMF")
plt.show()