It can be done, I agree with the above posts. I wouldn't recommend it as there are several stealth options for mounting an amp. What type of car and how big is the amp? Airflow and cooling are big factors.
I've been an audio enthusiast for a while and starting to get back into it again. Getting ready to start some builds on my cars soon, so coming here for some new ideas.