Correct. Another way to specify this style would to be in a span or other separating element:
<span style="border: 0;"><img src="lol.jpg" /></span>
Forgive me if my syntax isn't exactly correct, it's been a few years since I've done a lot of web design and CSS, but I believe that's correct.