Ammonia smell sweat

I have read that it can be caused by excessive protein consumption but not sure how true that is