Cornell does not admit by major but by college. You can study both CS and Astronomy in CAS. You declare your major in the middle of your sophomore year.
If you want CS in engineering, I don’t believe you can fully double major.
Here’s the link to double majoring: http://www.cs.cornell.edu/Info/Department/Ugrad/Astro.html