Creating a bad habit?

I’ve gotten so lazy lately at night when my baby wakes up after only 2-3 hours I put him in bed with us instead of trying to get him to sleep longer on his own in his bassinet. I know he’s not hungry bc he’ll sleep another 3 hours straight when i end up doing this.

Am I creating a bad habit or is he too little to know? I don’t want this to be forever I just can’t handle the exhaustion at night and trying to get him to stay asleep in his bassinet so I resort to this so hubby and I can get better ZZZZs