flavieslm Hello
Yes, you can. If you have a Supersaver ticket, no change is possible and you must take the train Lausanne - Martigny mentioned on the ticket.
If you have a point-to-point ticket, you can obtain a refund before the day of validity and buy a new ticket only from Lausanne to Martigny.