1998 Chevy Malibu A/C problem

I recently bought a 1998 Chevy Malibu and when it turned hot two weeks ago the A/C only put out cool air… Took it back to the dealer and they checked the Freon. It was full, then replace a switch… didn’t work, then the drained the Freon and refilled … didn’t work.

Could it be a bad compressor??

Please help… they have had it for a week

Thanks, Herb Vincent