Brest milk..

I'm a FTM and was told I wouldn't be able to breastfeed due to complications I had in the beginning of my pregnancy. I am currently29 weeks and have been told there is a shot I can be given to stop milk production...is this true? Just wanting to know as much as I can before it all happens the less surprises the better. 
Thanks for any information 😊