This is a dumb question but curious

So my bf is one year old then me and the age of consent where I live is 18 so when he’s 18 and I’m 17 will our relationship be illegal? Again sorry for dumb question I just don’t know