to the mommies who rocked their babies to sleep

My son is 5 months and I still rock him to sleep and don't mind doing it until he is older, at what age will he be able to put himself to sleep? Will I eventually have to sleep train him or when he is older he'll learn himself?