Had shingles, could this be the reason for the pain in my nipples?

It is possible. If your shingles lesions were on a nipple then it's possible. However, if you have pain in both nipples then shingles may not be as likely.