You can always fill a scuba tank with a small compressor, but it must be done in small stages limited by minutes per fill and temperature of the pump.
On mine, I never run the compressor more than 15 minutes straight, then I shut it off and let it cool down completely. Once topped off, just remember to refill the tank after every two or three pcp airgun recharges.
The compressor doesn’t know/care how big the cylinder is it’s filling…it only knows heat, run-time, and backpressure. It would be no different than topping off two or three 1/2L pony bottles at carefully timed intervals.