Yes. If you give an element an ID, say foo (using HTML, I don’t think there’s a way in markdown), you can link to it by making the link's URL #foo.
foo
#foo
Example:
<span id="foo">Anchor</span> [Link to anchor](#foo) <a href="#foo">Link 2</a>