Yes, it is very possible to learn basic programming through the internet. There are a lot of sites which offers coding courses for free such as CodeAcademy, edX, Git Hub, and MIT Courseware to name a few. There are tons of places that offers you how to code. However, please do not really too much on those sites. You also need to invest on critical thinking and analysis to help yourself up since with all these free information, you my get overwhelmed and confuse yourself.