Yes, it is possible to learn HTML and CSS by yourself. However, you would need good learning resources. The most effective way to learn would be to enroll yourself in an excellent online course.