Can I use 15w40 engine oil instead of using 15w50 in Royal Enfield?

Can I use 15w40 engine oil instead of using 15w50 in Royal Enfield?