No, this is not correct, not even in the nice space [itex]\mathbb{R}[/itex]. Indeed, the set of rationals [itex]\mathbb{Q}[/itex] has a boundary which is entire [itex]\mathbb{R}[/itex] and is thus not compact!
The result is true in compact topological spaces, however. (because any closed set in a compact space is compact, and because the boundary is always a closed set).