Yes, almost any routing library will expose a Link component wrapper that properly sets those attributes.
Chiming in with "yes". When you can't, it's a bug; routing frameworks like e.g. react-router render to normal HTML, and only intercept left-clicks to override default browser behavior for those specific actions.