No such thing as 'guaranteed', but, many hit that with some tinkering, a core voltage increase, some more tinkering, and a bit of luck, and, good cooling...; certainly the 1700X is more likely to hit 4 GHz than the 1700 is, as allegedly better silicon is binned/used for the X models...
3.9 GHz seems attainable almost by all, 4.0 GHz is tad more finicky....