Given typical trailer construction, it may not be wise from a weight balance perspective, in that you may end up with a tail heavy trailer that will be prone to sway. This is a common thing when people choose the shortest trailer possible to accommodate loads based on length, rather than weight. Going longer on the trailer will make it considerably easier to get things balanced out correctly.
On the other hand, many trailer manufacturers will happily build out a custom trailer where you can have the axles moved one way or the other as needed to balance it out properly so that you wouldn't need to buy a trailer much longer than you really need in order to get this balance correct. I did this when I built my own flat deck trailer years ago to carry both my truck camper and 4WD off road toy, as my load put on a typical trailer with a 60/40 axle placement would have raised the tongue weight much too high, and I built the trailer to have a roughly 51/49 axle placement. Meaning that trailers are typically built with 60% of the empty trailer weight is forward of the axle, and 40% to the rear. Or, in the case of tandem axles, forward and rear of the equalizer pivot point.