Generally, Golden Retrievers and German Shepherds can get along well, but success depends on individual temperaments, early socialization, training, supervision, and compatibility.
Use gradual introductions, positive reinforcement, clear boundaries, plenty of exercise, and professional help if aggression appears. With proper management, they can be great companions.