how the perception works in bg3?

in previous bg versions every level, rogue got some skill points to distribute between lockpicking, stealth, traps etc...

now here, lets say i have a rogue lvl1 with 17dex, and there is a secret door, is there a difference between level 1 and level 4 rogue to spot that secret? do i have better chances at spotting with higher level? what if i failed at level 1, can i came back at level 4 and succeed?