Is this a legitimate use of association?

  associations, c++, relationship, uml

I have a sensor class, which has a name, location, data arrays, and I want to make an association relationship between it and a widget (a series of print statements that take in a number as an input, so for example, "Press 1 to clear the sensor", "Press 4 to sort the values of the sensor"). I want to have the relationship between these two as "Widget MODIFIES sensor". In the case of setting the sensor, could I have an association class that will record the time that the widget called for the sensor to set, the widget that called it and the sensor in question?

Source: Windows Questions C++