No, a loan modification alone will not affect your credit, however, if you are currently 30 /60 / 90 or more days late on your mortgage that will cause your credit to be damaged.
Fact:It is much, much cheaper for a lender to modify your existing loan than it is to foreclose on your property or to lose your business to another lender.