I would hazard a guess that is is not a solid post (ie 2.5" thick) unless it's a very large, sturdy boat.
As Rik asked.. What year, manufacturer, model is it, as that would give us (or others who own similar boats) something to go by?
I would likely ask someone, like an engineer, or machine shop, how much they feel it will be weakened, by bending it back. I am no engineer, but I would expect to find that the more it was bent, and the more it needs to be bent back, the weaker it would become. I know from trying to break / bend copper/ metal bar or pipe for example... you can bend it a bit each way and it takes many, many cycles before it will break. But, if you put a few 30 - 45 degree bends on it, it will break easily.
If it's a slight bend, (ie <10 degrees or so) I would think it would still be plenty strong after straightening. Of course, if you ground again, or hit a semi-submerged container, all best are off, but even a new one would likely break then!