As per the Shariah, cutting nails or getting a haircut when in a state of ritual impurity (Janaabah) is Undesirable (Makruh). Thus, it is better that one shouldn’t do so. As mentioned in Fatawa A’alamgiri, Vol. 5, Pg. No. 358.
And Allah knows best.
Mufti Syed Ziauddin Naqshbandi Qadri
[Professor, Islamic Law, Jamia Nizamia
Founder-Director, Abul Hasanaat Islamic Research Center]