Yes of course ECU is connected to CAN and you can program it using AUTOSAR. All sensors are connected to ECU via CAN and each sensor bears it's individual address over CAN bus. You may access it through acknowledge and response along with other valuable data in CAN frame. You may then, use CAN frame's data and later on perform any decision making or conditioning to excite any actuator.