learners license as id?

ok maybe a dumb question but is a learner license valid Id to buy alcohol etc etc idk why but i cant figure it out