No, it is completely wrong. Guest blogging is very safe. You might have heard this because there are many service providers who provide spammy links from spammy websites, as a result of which, your site gets penalized. Hence, while approaching webmasters for guest posting opportunities, we follow a complete checklist that involves checking page authority, Google indexing status, filters for IP, organic traffic parameters, domain age etc.