Using can bus as digital pins

just wondering if i can use the Can_n and Can_p as digital pins?


No. They’re not connected to the nRF52 MCU, they’re connected to the MCP25625 CAN controller. It cannot use them as GPIO, and they’re also differential inputs - the values are compared to each other not to GND.

The best way to expand GPIO on the Tracker One M8 connector is a I2C GPIO expander. Application note AN013 shows how.