Yes, if you are using the custom CSS function, it will be:
.cm-header-1 for edit screen
.markdown-preview-view h1 for preview screen
Here is an example:
.markdown-preview-view h1 {
font-family: inter;
font-weight: 700 !important;
font-size: 24px;
font-weight: normal;
}