cry it out method for 2mth old?

is it ok that i let my 2mth old cry it out? my ob suggested me to do so, that way they wouldnt be too clingy. id admit it that there was once where i let him cry it out after feedings, burping, and changing diaper. i feel bad about it too :/