The opposite is more likely to be true. Guitar playing will most likely impact your weightlifting!
I say this light heartedly after many years of shoulder issues caused by spending so long hunched over the guitar with poor posture.
I played guitar for years before I got in to strength sports.
I’ve spent a lot of time with the olympic lifts so I can’t comment on body building, but from multiple procedures and endless physio I can say if you can get strong and maintain good posture it’s most likely to benefit you in the long run.