IF a bad site make a link to your site , this has not bad effect for your site , but if you make a link to a bad site , this is that, with bad effect.(for example your site is PR: 5 and in your page you have a link with PR: 1)
the only thing you must look in that page you wish to have a link is, PR.from that page shall be equal or more than your site PageRank.