So if I need to eat 3000 calories in a day, is it okay to eat it in 2 meals?

So for example starting with a meal which contains 1500 calories, then a couple of hours later another meal which consists of 1500 calories. Sometimes I feel hunger inbetween the meals, but is this bad to experience while trying to gain size?