Signal uses sender certificates and end to end signing the messages. Even if you don't set a pin to enable registration lock and someone steals your phone number temporarily without you noticing and they know who to send the forged messages to everyone will get a big warning message about the key being changed and to verify it's the other person.
Unless you just mean completely invent evidence on a controlled device in which case sure just edit the local message database like you would anything.