It depends on the library that you are using.
When you use a library that can do both, and uses a class for each sensor, it should be okay.
http://playground.arduino.cc/Main/DHTLib
#include <dht.h>
#define DHT11_PIN 50
#define DHT22_PIN 48
// create a class for each sensor.
dht dht11;
dht dht22;
// in the loop function you could have this:
int chk11 = dht11.read11(DHT11_PIN);
int chk22 = dht22.read22(DHT22_PIN);
I'm not sure that it will work, but I checked the code and I think it will.