You can try it, but be careful about overtightening to get it to work -- you could crack your frame.

I have a bike that takes an incredibly rare 31.4 post. Even with a shim, some seatposts worked, some didn't. You might get away without needing a shim, because I've seen a great variety within the same sizes.