Frappe framework develop doctype

Hello. Is there a way to create doctypes in the frappe framework through coding and not through the provided desk?