Burning the code with USBasp when another SPI device is connected

hello,
I am using ATMega644 based Arduino circuit. I have another device connected to SPI bus and I want to burn the code through USBasp programmer. But in the Arduino IDE I'm getting the "Wrong microcontroller found" error.

Is it possible to program the MCU through ISP when another SPI device is connected, please?

Thank you.

It should be fine as long as there's a pullup on the CS line to the other spi device (otherwise, the pin would be floating and the device might think you're talking to it)