Yes.. Until you put the image on paper, DPI is meaningless..
DPI is a printing term. It's *nothing* more thant the number pixels in an image divided by the number of inches of paper you plan to spread them across. When you attach a DPI value to a file, you've attached a default printing size and nothing more.
A 300 pixel wide image spread across one inch of paper has 300 DPI. It CAN'T be anything else. So setting a 300 pixel image to print 1 inch wide is EXACTLY the same as setting the DPI to 300. There's no difference.
If you look at the "image size" window in whatever software you are using, you'll see there are also inches shown. (There have to be inches otherwise you couldn't have dots per inch). The DPI is *always* equal to the number of pixels divided by the inches. When the software shows you the DPI, all it is doing is dividing what's in the pixel box by what's in the inches box. The inches the software is showing you are always inches of PAPER.
If you have Photoshop, you'll see in the image size window, that they are careful to break it into two sections with a thin line.. The top is labled PIXEL DIMENSIONS.. This only shows pixels. This is all there is in the file. The bottom section is labled the DOCUMENT section.. This shows inches and pixels per inch.
The Pixel Dimensions show you the width and height in pixels. That is all you can change there. The DOCUMENT is what the image will be like when it is printed on paper... Here you can change the print size in inches.. And of course when you change the print size, the program divides the number of pixels in the image by the print size you chose and tells you how many dots per inch you will have when you print it. at that size.
Changing the DPI of an image does nothing to the pixels in an image. All you are setting is a couple of bytes in the image header. These bytes are meant to be read by your printing software. The value of these bytes tell your printer how big to make the image.
The DPI can be anything you want.. As Jesper says.. Unless you're actually printing your image, DPI is meaningless