You need to escape the special characters with a backslash \ in front of the special character. For your case, escape every special character with backslash \.
eg: **** boy is ******** boy is ****
sed 's/\\*\\*\\*\\*\*\*\*\*/sam/g' filename
ans :
sam boy is sam