Can I modify guestbook.module safely?
Changing module code is usually a bad idea because it makes it hard to impossible to update to a newer version of the module.

Without knowing the structure of that module, changing the HTML/output should always be possible by overriding theme functions, which you can do without changing the original code.

See: http://drupal.org/node/11811