Hi Bob,
Short answer is no. For example, would it make sense to use an Analog input task on a digital module? You can check the Python API documentation to figure out more about each function you want to use. You can also check the C Reference documentation to learn about what properties are supported for each device.
1. NI-DAQmx Python Documentation
https://nidaqmx-python.readthedocs.io/en/latest/index.html
2. Supported Properties by Device
http://zone.ni.com/reference/en-XX/help/370471AA-01/
Best,
Ben