Well, tbh, I definitely can imagine a situation, where an armor plating produced out of extremely expensive/rare/hard to produce or work with material would cost more then the ship itself. That is, when related to battleships.
If you install said armor on the ship that is worth 30 millions, that's definitely wrong. (because the amount of material that you're going to spend on battleship and on gunboat differ, and differ alot)