First, welcome to the forum.
Yes you can. I just did it on my Montana High Country.
That electrical box contains the wires for the AC. You'll have to buy one with the controls on the AC itself. You won't be able to use the wall thermostat. I purchased a 13,500 NON DUCTED AC. It has to be non-ducted. Remove the vent and fan, put electrical wire nuts on the ends of the wires and tuck them in between the roof and ceiling so they are out of the way. It would be a good idea to tape the wire nuts to the wires. Then you'll need to snake a 110 volt wire from inside the vent hole to the electrical box between the roof and ceiling.
You should find a circuit breaker in you RV entrance panel probably dedicated just for that front AC. Good luck. It's not hard at all as long as you're have a little bit of electrical background.
When tightening the four hold down bolts on the AC, just tighten them a little beyond snug. You don't want to over compress the thick foam gasket between the AC and roof. In a year, go back and retighten them again because the foam will relax a little.