It is not advisable. The route is remote, crosses a high pass with snow, has no signal after Dayara Thach, and requires camping and food for several days. The descent to Barua is steep and exposed in places, and rescue can take a long time.
If you are experienced, hire a local guide and ponyman in Janglik and rent camping gear in Shimla, and get your forest permit. Travel in a group of at least three and carry a satellite messenger.
For most people, a small group with an established operator is both safer and more cost-effective once permits, food and equipment are counted.