yea, that will work. You could probably run 8gauge and be fine. since it such a short distance. The length of the 8gauge will be like 1ft i am assuming. and that is fine. but the 4 gauge is good so if you decide to get a bigger amp, it will handle it.
go for it