Yes, you can but astrophotographers must be mindful of the noise-handling abilities of each system, as this is an issue often encountered by night and low-light photographers. Be sure to assess the camera's capacity to block out infrared light before taking a camera apart since this is necessary to capture cosmic objects.
If necessary, a professional can remove the infrared filter after purchase. This is the method we would choose if you are not confident with DIY camera fixes or engineering as it can void warranties.