Yes, there is nothing wrong with paying for an online course. On the internet, there is a wide variety of content both paid and non-paid. It is your choice which you prefer.