Anyone can learn to use a computer with enough practice. Knowing the fundamentals of computers will not make you a competent programmer. Basic computer classes in Delhi are not theory-based programs in which you must take notes and memorize definitions; rather, they are skill-based courses in which you must practice to perfect.
If you have access to computers or laptops at home, you can certainly study from them. The above-mentioned basic computer courses in Delhi are technical courses delivered via the internet. Yes, you can learn at home if you have the necessary equipment; otherwise, institutes are a good option.