Both calligraphy and painting need to practice quietness, artistic conception, aesthetics and layout.
Anyway, learn calligraphy first.
I think it is better to learn calligraphy first, and learning calligraphy well is also a good foundation for learning painting in the future.