Hey Supriya,
Its true that to gain weight you need to consume more calories, but consuming only calories wont help you to gain weight. Along with extra caloric diet go for some strengthening exercises to improve muscle mass. Include lot of protein in your diet, as proteins are the building blocks of body. Plan your diet based on your basal metabolic rate, lifestyle and workout so as to ensure appropriate calorie intake to gain weight. Remember, 3500 calories equals 1 pound.