It is possible for a website to be penalized for using unethical (black hat) or spammy SEO techniques, such as keyword stuffing or buying backlinks. However, following best practices and focusing on providing high-quality content and a good user experience will help you avoid any penalties.