أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
They can, as the sitemap is under your control and you can do whatever you want with it. However as anchors generally refer to different parts of the same page, this is not ideal. You should just put the source HTML page in the sitemap, and not all the anchor-URLs.