Yes, a student from a lower-middle-class background can afford to study at BITS Pilani or BITS Goa. There are several provisions of loans and scholarships for every student to afford a course from such a premier institute in India.
Therefore, it is absolutely possible for you to afford a study at institutes like BITS.