Extensibility and migration from hugo

I am relatively new to programming and currently using hugo for a small side project wherein I am using yaml currently to store frontmatter data. If the project gets big and hugo no longer is able to fulfil the requirements, how flexible is migration from hugo setup to a full dbms based dynamic website.

Will I face any limitations and carry any risk of not being able to migrate the yaml alongwith the posts to say a mern stack or wordpress ?