Yes and I see this as a serious shortcoming and a gotcha if you are not aware this limitation beforehand.
EDIT: Just to clarify this affects custom code placed inside a rich text field element. Code added to a text field will be exported, you just can’t render it in Webflow layouts without it being encoded (which you can decode with code).