If the seatpost is long enough that the minimum insertion mark is below the top of the seat tube you should be fine. There are seatposts 400 mm long or even more available and the minimum insertion marks are typically 75 mm or so from the end so you have a lot of extension available.