When I drop some code into a placeholder, does its function remain invisible until the website is published? If so, is there anyway to determine if it's functioning properly before publishing?

Thanks!

Dave