@BernardoMeurer It makes sense and there are many ways to achieve it. The simplest one is to create a new "theorem" (you can change the name into "Exercise") with
amsthm
package, look at this post:
tex.stackexchange.com/questions/64931/using-newtheorem, for example. Otherwise, for more complicated settings, you could use
tcolorbox
.