The answer is probably yes but .... you have to tell us the model # of the samsung and the Panasonic. There are many different models of each and each one would have different cable options.
Having said that ... hdmi is usually the highest quality connection (I'm surprised you're getting pixilation) ... have you tried a different hdmi cable?