is shy is another word for lack of self-confidence

are they the same or different cause i think im getting mix up here

please help and thank you

They could be the same, but not necessarily.

A person could be self-confident about some of her abilities (art? writing? sports?), yet still be shy around strangers or even friends. A shy person may prefer to be a private person.