Yeah, but not the password. Just create a file named master.passwd, and place it in the etc folder of the OS X drive.
Put this in the master.passwd file:
##
# User Database
#
# Note that this file is consulted when the system is running in single-user
# mode. At other times this information is handled by lookupd. By default,
# lookupd gets information from NetInfo, so this file will not be consulted
# unless you have changed lookupd's configuration.
##
nobody:*:-2:-2::0:0:Unprivileged User:/dev/null:/dev/null
root:*:0:0::0:0:System Administrator:/var/root:/bin/tcsh
daemon:*:1:1::0:0:System Services:/var/root:/dev/null
unknown:*:99:99::0:0:Unknown User:/dev/null:/dev/null
smmsp:*:25:25::0:0:Sendmail User:/private/etc/mail:/dev/null
www:*:70:70::0:0:World Wide Web Server:/Library/WebServer:/dev/null
mysql:*:74:74::0:0:MySQL Server:/dev/null:/dev/null
sshd:*:75:75::0:0:sshd Privilege separation:/var/empty:/dev/null
(That's an exact copy of the master.passwd file I have - not changed by me at all).
I'd suggest saving this with BBEdit, if you have it, and make sure that it's using UNIX line breaks. I have no idea if the file will be accepted if it's saved with the standard Mac line breaks.
Note that you will need to edit the privileges of the file once you get OS X working. Probably a repair permissions from Disk Utility will fix it.