Hi Sebi,
I hope you are well today and thank you for your question.
Yes you can achieve that by creating custom link menu item containing element id in it as described in the following topic.
https://colorlibsupport.com/t/one-page-menu/#post-56034
Best Regards,
Movin