Love?

Are you supposed to be in a relationship before you say ‘i love you’ or can you say I love u first or is that weird? Bc my bf and i said i love u to each other before we even officially said that we were bf and gf