This is fine. The fret is the important part, it’s the part you want to communicate, the space between the frets is just where you touch the strings if you want a clear sound, and your guitar is fretted. You can place your fingers directly on the frets, it just makes a different sound.